package com.xmut.mall.auth.controller;

import com.xmut.mall.auth.service.RegisterService;
import com.xmut.mall.auth.utils.RespBean;
import com.xmut.mall.auth.vo.RegisterVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RegisterController {

    @Autowired
    private RegisterService registerService;

    /**
     * 注册
     * @param vo
     * @return
     */
    @PostMapping("/register")
    public RespBean register(@RequestBody RegisterVo vo){
        return registerService.register(vo);
    }
}
